package com.attilax.lang;

import java.util.List;

import org.apache.commons.io.filefilter.TrueFileFilter;

import com.attilax.io.filex;

public class ApiConter {

	public static void main(String[] args) {
		System.out.println("--start");
		int i = 0;
		String s = "C:\\Users\\Administrator\\newp820.txt";
		List<String> li = filex.read2list_filtEmptyNstartSpace(s);
		for (String line : li) {
			System.out.println("                              "+line);
			if(line.length()<30)
			{
				i++;
				System.out.println("___"+line);
				continue;
			}
			
			try {
				line = line.substring(0, 25);
				
			} catch (StringIndexOutOfBoundsException e) {

			}

			if (line.contains("_") )
			{
				i++;
				System.out.println("___"+line);
			}
				
		}
		System.out.println(li.size());
		System.out.println(i);

	}

}
